/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.UnsupportedEncodingException;
import java.util.Calendar;

/**
 * <p>Project: javaseapp - Str1
 * <p>Powered by webrx On 2021-08-06 10:36:52
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Str7 {
    public static void main(String[] args) throws UnsupportedEncodingException {
        var c = Calendar.getInstance();
        int k = c.get(Calendar.DAY_OF_WEEK);
        String str = "星期".concat(String.valueOf("日一二三四五六".charAt(k - 1)));
        System.out.println(str);
        String s = "myjavaok";
        System.out.println(s.startsWith("my"));
        System.out.println(s.endsWith("ok"));
        System.out.println(s.contains("java"));
        System.out.println(s.indexOf("java"));
    }
}
